The variable headers seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.headers.
The variable data seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.data.
Loading history...
12
"customer_details" : customer,
13
"products" : products,
14
"amount" : amount,
15
"callback_details" : callback_details
16
};
17
18
let res = await axios.post("https://chpter.co/api/payment/payment-initiate-callback/", data, { headers: headers});
19
20
return res.data;
21
}
22
23
24
async function cardPayment(customer,products,amount, card_details, callback_details) {
The variable headers seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.headers.
The variable data seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.data.
Loading history...
31
"customer_details" : customer,
32
"products" : products,
33
"amount" : amount,
34
"card_details" : card_details,
35
"callback_details" : callback_details
36
};
37
let res = await axios.post("https://chpter.co/api/payment/payment-initiate-callback/", data, { headers: headers});